#ifndef __ST7567S_H__
#define __ST7567S_H__
#include "main.h"

#define PAGE_START 0xB0
#define MAX_PAGE 9
#define MAX_COLUMN 132

void st7567_command(uint8_t cmd);
void st7567s_initial(void);
void st7567_drawByte(uint8_t page, uint8_t column, uint8_t byteData);
void st7567_fillBuffer(uint8_t byteData);
void st7567_fillLine(uint8_t dataByte);
void st7567_flushBuffer(void);
void st7567_drawIcon(uint8_t index, uint8_t state);
void st7567_drawPixel(uint8_t x, uint8_t y, uint8_t state);

void st7567_fill(uint8_t dat);
extern void st7567s_test(void);
extern void st7567s_tests(void);

#endif //__ST7567S_H__